package com.itheima.health.dao;

import com.itheima.health.pojo.GroupItem;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface GroupItemDao {

    /**
     * 编辑检查组的检查项
     * @param groupItem
     */
    @Insert("insert into t_item_group(t_item_id,t_group_id)" +
            "values (#{checkItemId},#{checkGroupId})")
    void insert(GroupItem groupItem);
    /**
     * 根据检查组id查询检查项
     * @param id
     * @return
     */
    void deleteItemInGroupByGroupId(Integer id);
}
